package com.example.springmvc_demo3.mapper;

import com.example.springmvc_demo3.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {
    @Insert("insert into user(username,password,email,sex,role) values(#{username},#{password},#{email}),#{sex},#{role}")
    int addUser(User user);

    User findByUsername(String username);
}